<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息编辑</title>
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<link type="text/css"
	href="css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
<link href="css/sytle.css" rel="stylesheet" type="text/css" />
<sx:head />
<link href="css/sytle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(function() {
		$("#dialog").dialog({
			autoOpen : false,
			show : "blind",
			hide : "explode"
		});

		$("#opener").click(function() {

			return false;
		});
		$("#EditUser").click(function() {

			editUser(1);
		});

		function editUser(id) {
			var url = "editUser";
			$.getJSON(url, {userid : 1}, function callback(data) {
				$("#user_userid").val(data.userid);
				$("#user_name").val(data.name);
				$("#user_group").val(data.group);
				$("#user_type").val(data.type);
				$("#user_graduated").val(data.graduated);
				$("#user_address").val(data.address);
				$("#user_mobile").val(data.mobile);
				$("#user_telephone").val(data.telephone);
				$("#user_email").val(data.email);
				$("#user_workingOrgans").val(data.workingOrgans);
				$("#user_workPosition").val(data.workPosition);
				$("#user_artisticSkills").val(data.artisticSkills);
				$("#dialog").dialog("open");
			});
		}
	});
</script>
</head>
<body>
	<h1>
		<a id="EditUser" href="#">Test</a>
	</h1>
</body>
</html>